const merge = require('merge')
const common = require('./webpack.common')
const webpack = require('webpack')

//ESlint 配置添加
module.exports = merge(common, {
    mode: 'development',
    devtool: 'source-map',
    devServer: {
        hot: true
    },
    plugins: [
        ...common.plugins,
        new webpack.DefinePlugin({
            BASE_URL: JSON.stringify("./public/")
        })
    ]
})